﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataModel;
using SchoolDataLayer;

namespace SchoolBusiness
{
    public class BLRoutine
    {
        private readonly DLRoutine _dlroutine = new DLRoutine();
        public int AddSubject(Subject _subject)
        {
            return _dlroutine.AddStudent(_subject);
        }
        public List<Grade> GetGrade()
        {
            return _dlroutine.GetGrade();
        }
        public List<Subject> GetAllSubject()
        {
            return _dlroutine.GetAllSubject();
        }
        public Subject GetSubjectById(int id)
        {
            return _dlroutine.GetSubjectById(id);
        }
        public int UpdateSubjectById(Subject _sub)
        {
            return _dlroutine.UpdateSubjectById(_sub);
        }
        public int DeleteSubjectbySubjectId(int subId)
        {
            return _dlroutine.DeleteSubjectbySubjectId(subId);
        }
        public int SaveRoutine(Rountine _rountine)
        {
            return _dlroutine.SaveRoutine(_rountine);
        }
        public List<MStudent> GetSection(int grade)
        {
            return _dlroutine.GetSection(grade);
        }
        public List<Subject> GetSubjectByClassId(int classid)
        {
            return _dlroutine.GetSubjectByClassId(classid);
        }
    }
}
